/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.hanfu.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author bbm
 * @since 2025-03-20
 */
@Data
@TableName("oss_file")
public class OssFile implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件唯一id
     */
    @TableId(value = "oss_id", type = IdType.AUTO)
    private Integer ossId;

    /**
     * 主题
     */
    private String subject;

    /**
     * 文件hash
     */
    private String fileHash;

    /**
     * 文件大小
     */
    private Integer fileSize;

    /**
     * 隶属用户
     */
    private Integer userId;

    /**
     * 源文件名称
     */
    private String originFileName;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 服务器存放地址
     */
    private String serverPath;

    /**
     * 访问地址
     */
    private String clientUrl;

    /**
     * 上传者
     */
    private String updataBy;

    /**
     * 上传时间
     */
    private String updataTime;

    /**
     * 1 正常 0 回收站状态
     */
    private String status;

}
